
    <div class="blog-post-area">
        <h2 class="title text-center">Latest News From Pet Shop</h2>
        <?php foreach ($news as $one_news){ ?>
        <div class="single-blog-post">
            <h3><?php echo $one_news['title'] ?></h3>
            <div class="post-meta">
                <ul>
                    <li><i class="fa fa-calendar"></i> <?php echo $one_news['news_date'] ?></li>
                </ul>
								<span>
										<i class="fa fa-star"></i>
										<i class="fa fa-star"></i>
										<i class="fa fa-star"></i>
										<i class="fa fa-star"></i>
										<i class="fa fa-star-half-o"></i>
								</span>
            </div>
            <a href="">
                <img src="<?php echo $one_news['url_image'] ?>" alt="">
            </a>
            <p><?php if(strlen($one_news['content'])>= 400) { echo substr($one_news['content'], 0, 400). "  ..."; } ?></p>
            <a  class="btn btn-primary" href="<?php echo base_url() ;?>frontend/news/viewDetail/<?php echo $one_news['news_id'] ?>">Read More</a>
        </div>
        <?php } ?>
        <div class="pagination-area">
            <ul class="pagination">
                <li><a href="" class="active">1</a></li>
                <li><a href="">2</a></li>
                <li><a href="">3</a></li>
                <li><a href=""><i class="fa fa-angle-double-right"></i></a></li>
            </ul>
        </div>
    </div>